const Router = require("koa-router");
const router = new Router({
    prefix: "/user"
});

router.get("/", async function (ctx) {
    console.log(ctx.state)
    // ctx.body = "user地址"
    ctx.body = {
        state:true,
        msg:"获取登录用户信息成功",
        data:{
            user:ctx.state.user
        }
    }
});


module.exports = router;